#这是基于JRE8的基础镜像，并且加入了中文字体，解决后端乱码
FROM kuizii/jre:8-chinese-font
ENV PROJECT_FILENAME $[project.build.finalName].$[project.packaging]
USER root
ADD $PROJECT_FILENAME /$PROJECT_FILENAME
VOLUME /tmp/mclog
COPY wait-for-it.sh /opt/
RUN chmod +x /opt/wait-for-it.sh
EXPOSE 8020
ENTRYPOINT /opt/wait-for-it.sh 127.0.0.1:8848 -- java -Xmx512m  -Dspring.profiles.active=prod  -jar /$PROJECT_FILENAME > /tmp/mclog/demowebapi.log
